﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    /// <summary>
    /// 书籍库存
    /// </summary>
    public interface IBookRepositoryService
    {
        Task<int> AddBookRepositoryAsync(int bookInfo,int bookSum);
        Task<int> EditBookRepositoryAsync(int id, int bookInfo, int bookSum);
        Task<int> DeleteBookRepositoryAsync(int id);
        Task<List<BookRepositoryDto>> QueryBookRepositoryAllAsync();
        Task<BookRepositoryDto> QueryBookRepositoryByIdAsync(int id);
        //Task<List<BookRepositoryDto>> GetBookRepositoryByNameAsync(string title);
    }
}
